package com.clc.comm.security;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("role")
public class Resources {
	
	@XStreamAsAttribute
	@XStreamAlias("name")
	private String roleName;//角色名称
	
	@XStreamImplicit(itemFieldName="url")
	private List<String> urls;//对应可访问的url

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public List<String> getUrls() {
		return urls;
	}

	public void setUrls(List<String> urls) {
		this.urls = urls;
	}

	public Resources(String roleName, List<String> urls) {
		super();
		this.roleName = roleName;
		this.urls = urls;
	}
	
}
